#!/bin/sh

# Generate a .tar.gz with the release source, to put up on the website

if [ "$1" == "" ]; then
   echo Usage: mksrcpkg.sh TAGNAME
   exit 1
fi

TL=`echo $1 | tr [:upper:] [:lower:]`

mkdir _SRCTEMP_
cd _SRCTEMP_
cvs -z3 -d:pserver:anonymous@cvs.pgfoundry.org:/cvsroot/pginstaller export -r $1 pginst
tar cfz ../pginstaller-${TL}-src.tar.gz pginst
cd ..
rm -rf _SRCTEMP_

